<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/CMS.Master" Inherits="Shop.Framework.Page.OrderDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<title>Customer Order Detail</title>
	<link href="/Content/reciept.css" type="text/css" rel="Stylesheet" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div class="registration_wrapper" style="border: solid 2px #7adccf;" id="recieptArea">
        
        <b>Sale Detail</b>
        <hr />
        <div class="registration_labels">    
            <div class="registration_labels left"><b>ORDER #:</b></div>
            <div class="left vals">#<%=ViewData.Model.IdCustomerOrder%></div>
            <div class="clear"></div>            
        </div> 
        
        <div class="registration_labels">    
            <div class="registration_labels left"><b>Sale To:</b></div>
            <div class="left vals"><%=ViewData.Model.Customer.FirstName%> <%=WebCart.Self.CurrentCustomer.LastName %></div>
            <div class="clear"></div>            
        </div>        
        <div class="registration_labels">    
            <div class="registration_labels left"><b>Email:</b></div>
            <div class="left vals"><%=ViewData.Model.Customer.LoginId%> </div>
            <div class="clear"></div>            
        </div>
        <div class="registration_labels">    
            <div class="registration_labels left"><b>Address:</b></div>
            <div class="left vals">
                <%=ViewData.Model.Customer.Street%> <%=ViewData.Model.Customer.City%><br/>
                <%=ViewData.Model.Customer.Country%>  <%=ViewData.Model.Customer.Zip%> 
            </div>
            <div class="clear"></div>            
        </div>
        
        <b>Delivery Detail</b>
        <hr />
        <div class="registration_labels">    
            <div class="registration_labels left"><b>Name:</b></div>
            <div class="left vals"><%=ViewData.Model.FirstName%> <%=ViewData.Model.LastName%></div>
            <div class="clear"></div>            
        </div>
        
        <div class="registration_labels">    
            <div class="registration_labels left"><b>Address:</b></div>
            <div class="left vals">
                <%=ViewData.Model.DeliveryStreet%> <%=ViewData.Model.DeliveryCity%><br/>
                <%=ViewData.Model.DeliveryCountry%>  <%=ViewData.Model.DeliveryZip%> 
            </div>
            <div class="clear"></div>            
        </div>
        
        <%if (ViewData.Model.ExtraCharge > 0) { %>
        <div class="registration_labels">    
            <div class="registration_labels left"><b>Shipping Charge:</b></div>
            <div class="left vals"><%=ViewData.Model.ExtraCharge.ToString("C")%></div>
            <div class="clear"></div>
        </div>
        <%} %>
        
        
        <div class="registration_labels">    
            <div class="registration_labels left"><b>Total Payment:</b></div>
            <div class="left vals"><%=ViewData.Model.TotalPrice.ToString("C")%></div>
            <div class="clear"></div>
        </div>        
        <div>
                <form action="/cms/complete-order" method="get">                            
                <input type="Submit" value="Set order as completed.."/>                            
                <input type="hidden" value="<%=ViewData.Model.IdCustomerOrder %>" name="IdCustomer"/>
                </form>                                                                                 
       </div>
    </div>

</asp:Content>
